home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttssssiiiidddd((((2222)))) ggggeeeettttssssiiiidddd((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _gggg_eeee_tttt_ssss_iiii_dddd - get session ID
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _pppp_iiii_dddd______tttt _gggg_eeee_tttt_ssss_iiii_dddd_((((_pppp_iiii_dddd______tttt _p_i_d_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The function _gggg_eeee_tttt_ssss_iiii_dddd returns the session ID of the process whose process
- ID is equal to _p_i_d. If _p_i_d is equal to _((((_pppp_iiii_dddd______tttt_))))_0000, _gggg_eeee_tttt_ssss_iiii_dddd returns the
- session ID of the calling process.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- Upon successful completion, the function _gggg_eeee_tttt_ssss_iiii_dddd returns the session ID of
- the specified process; otherwise, it returns a value of _((((_pppp_iiii_dddd______tttt_))))_----_1111 and
- sets _eeee_rrrr_rrrr_nnnn_oooo to indicate an error.
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the function _gggg_eeee_tttt_ssss_iiii_dddd fails and sets _eeee_rrrr_rrrr_nnnn_oooo
- to:
-
- _EEEE_PPPP_EEEE_RRRR_MMMM if the process whose process ID is equal to _p_i_d is not in the
- same session as the calling process, the implementation does
- not allow access to the session ID of that process from the
- calling process. Under IRIX, access to the session ID of that
- process is always allowed to the calling process.
-
- _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS In the Trusted IRIX environment, the MAC label of the current
- process does not dominate and is not equal to the MAC label of
- the process _p_i_d , and the current process does not have the
- CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD capability.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL The _p_i_d is out of range or is not an invalid argument.
-
- _EEEE_SSSS_RRRR_CCCC_HHHH if there is no process with a process ID equal to _p_i_d.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- exec(2), fork(2), getpid(2), setpgid(2), setsid(2) capabilities(4)
- dominance(5)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-